﻿using Application.AppService.IConfig;
using Domain.Entity.Config;
using Domain.Repository.IConfig;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Application.AppService.Config
{
    public class Config_file_first_kindAppService : IConfig_file_first_kindAppService
    {
        private readonly IConfig_file_first_kindRepository cffkr;

        public Config_file_first_kindAppService(IConfig_file_first_kindRepository cffkr)
        {
            this.cffkr = cffkr;
        }
        public Task<int> AddCFFKAsync(Config_file_first_kind config_File_First_Kind)
        {
            return cffkr.AddCFFKAsync(config_File_First_Kind);
        }

        public Task<int> DeleteCFFKAsync(int Id)
        {
            return cffkr.DeleteCFFKAsync(Id);
        }
        public async Task<List<Config_file_first_kind>> SelectCFFK()
        {
             List < Config_file_first_kind > cFFKS=await cffkr.SelectCFFK();
            return cFFKS;
        }

        public Task<int> UpdateCFFKAsync(Config_file_first_kind config_File_First_Kind)
        {
            return cffkr.UpdateCFFKAsync(config_File_First_Kind);
        }
    }
}
